package com.snopy.datastructure.list;

/**
 * @author snopy
 * @version 1.0.0
 * @classname List
 * @description
 * @email 77912204@qq.com
 * @date 2022/02/22 17:55
 */
public interface MyList<E> {
    //clear the list element
    void clear();
    //check list is or not empty
    boolean isempty();
    //return the list's length
    int length();
    //return an element at i
    E get(int i);
    //insert an element before the element at i
    void insert(int i,E t);
    //insert an element
    void insert(E t);
    // remove an element
    E remove(E t);
    //returns the index when the first element matchers
    int indexOf(E t);



}
